CapitalController = BaseController.extend({
	template:'Capital',
	center:'余额明细',
	
	waitOn:function(){
		let self = this;
		let merchantInfo = self.currentUser();
		if(merchantInfo){
			return Meteor.subscribe('capitals',{merchant_id: parseInt(merchantInfo.id)});
		}
    },
    onRendered:function(){
		
	},
	data: function(){
		return {
			capitalList:function(){
				return Capitals.find({}, {sort: { id: -1}}).fetch();
			},
		};
	},
})